package com.study.demo.aop.demo2;

import com.study.demo.aop.demo1.IUserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 模仿 cacheable
 * @author: elvin
 * @time: 2019-05-23 15:47
 * @desc:
 **/
public class Start2 {
    public static void main(String[] args) {
        ApplicationContext ct = new ClassPathXmlApplicationContext("classpath:demo2/aop.xml");
        TestService service = (TestService) ct.getBean("testService");
        service.getDefault();
    }
}
